package com.example.entity.mes.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "车间添加Dto")
@Data
public class WorkShopAddDto {

    @NotBlank
    @ApiModelProperty(value = "车间编码", required = true)
    private String workshopCode;

    @NotBlank
    @ApiModelProperty(value = "车间名称", required = true)
    private String workshopName;

    @ApiModelProperty("负责人")
    private String principal;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("面积")
    private Double area;

    @NotBlank
//    @Pattern(regexp = "(?:1|2)", message = "")
    @ApiModelProperty(value = "是否启用", required = true)
    private String isUse;

}
